﻿using furion.blog.Domain.MySQL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Domain.IRepositories
{
    public interface IMenuRepository
    {
        Task<List<Menu>> All();

        /// <summary>
        /// 清空表数据
        /// </summary>
        /// <returns></returns>
        void Truncate();

        /// <summary>
        /// 批量保存
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        Task Save(List<Menu> data);
    }
}
